package com.aibaixun.common.constant;

/**
 * 通用常量信息
 *
 * @author zhangyh
 */
public interface Constants {

    /**
     * 数据状态  0：正常，1：删除
     */
    public static final int INT_1 = 1;
    public static final int INT_2 = 2;
    public static final int INT_0 = 0;
    public static final int INT_3 = 3;
    public static final int INT_4 = 4;
    public static final int INT_5 = 5;
    public static final int INT_6 = 6;
    public static final int INT_7 = 7;
    public static final int INT_8 = 8;
    public static final int INT_9 = 9;
    public static final int INT_10 = 10;
    public static final int INT_15 = 15;
    public static final int INT_20 = 20;
    public static final int INT_30 = 30;
    public static final int INT_31 = 31;
    public static final int INT_100 = 100;
    public static final int INT_1000 = 1000;
    /**
     * 数据状态str
     */
    public static final String STRING_STATUS_0 = "0";
    public static final String STRING_STATUS_1 = "1";
    public static final String STRING_STATUS_2 = "2";
    public static final String STRING_STATUS_3 = "3";
    public static final String STRING_STATUS_4 = "4";
    public static final String STRING_STATUS_5 = "5";

    /**
     * UTF-8 字符集
     */
    String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    String GBK = "GBK";

    /**
     * www主域
     */
    String WWW = "www.";

    /**
     * http请求
     */
    String HTTP = "http://";

    /**
     * https请求
     */
    String HTTPS = "https://";

    /**
     * 通用成功标识
     */
    String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    String FAIL = "1";

    /**
     * 登录成功
     */
    String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    String LOGOUT = "Logout";

    /**
     * 注册
     */
    String REGISTER = "Register";

    /**
     * 登录失败
     */
    String LOGIN_FAIL = "Error";

    /**
     * 验证码有效期（分钟）
     */
    Integer CAPTCHA_EXPIRATION = 2;

    /**
     * 令牌
     */
    String TOKEN = "token";

    /** * 应用id */
    public static final String APP_ID ="appId";

    /** * 时间戳,增加链接的有效时间,超过阈值,即失效 */
    public static final String TIME_STAMP ="timeStamp";

    /** *签名 */
    public static final String SIGN ="sign";

    /** * 临时流水号/随机串 ,至少为10位 ，有效期内防重复提交 */
    public static final String NONCE ="nonce";

    /** * 请求url */
    public static final String REQ_URL ="reqUrl";

}

